---
# main style
---

body {
    //font: 14px/18px "Helvetica Neue", Arial, sans-serif;
    padding-bottom: 40px;
    //font-family: Exo,'-apple-system','Open Sans',HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue','Hiragino Sans GB','Microsoft YaHei',Helvetica,Arial,sans-serif;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

/** common style **/
a {
    text-decoration: none;
    color: #E34E48;

    &:hover {
        text-decoration: none;
    }
}

hr {
    border-bottom: 1px solid #ccc;
    border-top-style: none;
}

h1, h2, h3, h4, .links {
    font-family:"Open Sans", "Helvetica Neue", Arial, sans-serif;
}

h1, h2 {
    font-weight: 700;
    a {
        color: black;
        text-decoration: none;

        &:hover, &:hover {
            text-decoration: underline;
        }
    }
}

em {
    font-style: italic;
}

blockquote {
  margin: 1.5em;
  color: #666;
  font-style: italic;
  padding: 0 0 0 15px;
  margin: 0 0 18px;
  border-left: 5px solid #eee;
  border-color: #ddd;
  border-color: rgba(0,0,0,0.15);
}

/* table */
table {
  border: 1px solid #000000;
  border-collapse: collapse;
}
table td, table th {
  border: 1px solid #000000;
  padding: 5px 4px;
}
table tr:nth-child(even) {
  background: #F2F2F2;
}
table thead {
  background: #696969;
}
table thead th {
  font-weight: bold;
  color: #FFFFFF;
  text-align: center;
}
table tfoot td {
  font-size: 14px;
}

/** layout */
.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0px 0px 0px 150px;
}

.header {
    padding-bottom: 10px;
    border-bottom: 2px solid black;
    margin: 40px auto 0 auto;

    .site-title {
        font-weight: 700;
        font-size: 25px;
        line-height: normal;
        vertical-align: middle;

        a {
            color: black;
            text-decoration: none;
            &:hover {
                text-decoration: underline;
            }

        }

        a, img {
            vertical-align: middle;
        }
    }


    .links {
        margin-top: 10px;
        font-size: 16px;
        vertical-align: middle;
        line-height: normal;
        color: #777;
        padding-left: 1px;
        display: none;

        a {
            text-decoration: none;
            color: #777;
            font-weight: 600;
            margin-right: 10px;
            &:hover {
                text-decoration: underline;
            }
            &.active {
                color: #444;
            }
        }

        img {
            vertical-align: top;
            margin-right: 2px;
        }
    }

    .top-personinfo {
        display: inline-block;
        margin-top: 10px;
    }

    // .top-up {
    //     height: 100px;
    //     position: relative;
    // }

    .top-avatar {
        display: none;
        float: left;
        vertical-align: text-bottom;
    }

    .top-social{
        width: 200px;
        display: none;
        margin-left: 110px;
        bottom: 0px;
        position: absolute;
        //margin-top:
    }
    .top-social li {
      display: inline-block;
    }
    .top-social li a {
      color: #969394;
    }
    .top-social li a:hover {
      color: #6D6D6D;
    }

    .top-author {
        display: none;
    }
}

.articles {
    .article-author {
        margin-bottom: 40px;
        padding-top: 20px;
        font-size: 14px;
        border-top: 1px solid #e7e7e7;
        overflow: auto;

        .avatar {
            float: left;
        }
        .name {
            margin-top: 5px;
            float: left;
        }
        h4 {
            font-size: 18px;
            margin-bottom: 6px;
        }
        h4 b {
            font-weight: 600;
        }
        img {
            border-radius: 50%;
            vertical-align: middle;
            margin-right: 2em;
        }
        span {
            margin-right: 10px;
        }
    }
}

/** left **/
.left {
    float: left
}

/** menu **/
.menu {
    width: 12em;
    margin-left: -15em;
    text-transform: uppercase;
    font-family: "Electrolize",sans-serif;

    a {
        display: block;
        color: #000;
        font-size: 1.1em;
        padding: .7em 1em;
        text-align: right;

        &:hover, &.active{
            color: #FFF;
            background-color: #363636;
        }
    }
}

/** avatar **/
.avatar {
    width: 12em;
    margin-left: -15em;
    font-family: "Electrolize",sans-serif;
    text-align: center;
    display: block;
}

.profile-avatar {
  border-radius: 5px;
}

/* Social Icons */
.social{
    width: 12em;
    margin-left: -15em;
    display: block;
    text-align: center;
}
.social li {
  display: inline-block;
}
.social li a {
  color: #969394;
}
.social li a:hover {
  color: #6D6D6D;
}

/* search */
.left-search {
  width: 12em;
  margin-left: -15em;
  display: block;
  text-align: center;
}

.left-search-icon {
  position: absolute;
  margin-top: 5px;
  margin-left: 5px;
}

.left-search-input {
  border: 2px solid #363636;
  border-radius: 5px;
  height: 30px;
  width: 195px;
  padding-left: 20px;
}

.left-search-results {
  width: 12em;
  display: block;
  text-align: left;
}

/** main entry**/
.entry {
    overflow: hidden;
    margin: 0 0 10px 0;

    h1 {
        font-weight: 700;
    }

    .entry-date,  .entry-content {
        float: left;
    }
    .entry-content {
        width: 100%;
        overflow: hidden;
    }

    h1 {
        font-size: 26px;
        line-height: 30px;
        margin-bottom: 10px;
        margin-top: 10px;
    }

    .entry-body {
        margin: 1em 0 1em 0;
        font-size: 16px;
        line-height: 28px;
        color: #333;

        strong, b {
            font-weight: 600;
        }

        p {
            margin: 22px 0;
        }

        p.caption {
            font-size: 14px;
            text-align: center;
            font-style: italic;
            margin-top: -5px;
            display: block;
        }

        h2 {
            font-size: 18px;
        }

        ul {
            margin: 15px 0 15px 10px;
            li {
                list-style: disc;
                margin-left: 1em;
            }
        }
        img {
            margin: 10px 0 10px 0;
            max-width: 100%;
            display: block;
        }
    }

    /** code style*/
    pre {
        line-height: 24px;
        border: 2px solid #eee;
        padding: 10px 12px;
        white-space: pre-wrap;
        font-size: 14px;

        code {
          border: 0;
          padding-right: 0;
          padding-left: 0;
          font-size: 14px;
          display: block;
          white-space: pre;
          word-wrap: normal;
          overflow: auto;
        }
    }

    /* terminal */
    pre.terminal {
      border: 1px solid #000;
      background-color: #333;
      color: #FFF;
      -webkit-border-radius: 3px;
      -moz-border-radius: 3px;
      border-radius: 3px;
    }

    .list-container {
        .text-muted {
            color: #999;
        }

        a {
            text-decoration: none;
        }

        ul li {
            list-style-type: none;
        }
    }
}

/** post */
.post {
    .entry-body {
        h2, h3, h4, h5, h6 {
            margin-top: 25px;
        }
        figure.highlight {
            -webkit-margin-before:0;
            -webkit-margin-after:0;
            -webkit-margin-start:0;
            -webkit-margin-end:0;
            margin-before:0;
            margin-after:0;
            margin-start:0;
            margin-end:0;
        }
    }
}

.article-title {
    margin-top: 10px;
}

.truly-title {
    font-size: 24px;
}

.article-meta  {
    text-align: right;
    margin: 10px 0 10px 0;
    color: #999;
}

.like-post {
    margin: 10px 0 10px 0;
    text-align: center;
}

/** page */
.page {
    margin-top: 5px;
    .entry-body {
        margin-top: 0px;

        .nav-tabs-horizontal{
            overflow: hidden;
            margin-top: 0px;
            li {
                float: left;
            }
        }

        h1,h2,h3,h4,h5,h6 {
            margin-top: 20px;
        }

        .list-container {
            padding-top: 10px;
        }
    }
}

/** 首页文章列表 **/
.article-list {
    margin-top: 10px;
    .list-year {
        font-size: 20px;
        height: 30px;
        line-height: 30px;
    }
    .list-item {
        font-size: 16px;
        margin: 20px 5px 20px 5px; //2em;
        line-height: 30px;
        span {color: #999}
    }
    .list-title {

    }
    .list-preview {
        color: #000;
    }
    .list-date {
        font-family: Lora,'Times New Roman',serif;color:gray;font-size:18px;
        font-style: oblique;
    }
}

.rss-subscribe {
    line-height: 36px;
    margin: 30px auto;
}

/* footer */
.site-footer {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
  color: #363636;
}

.footer-div {
  padding-top: 5px;
}

/* right */
.right {
  float: right;
}

.top-read {
  width: 18em;
  margin-right: -19em;
  margin-left: 1em;
  display: block;
  text-align: left;
}

.top-read h3.module-title::before {
  display: inline-block;
  margin-right: 3px;
  content: '';
  width: 4px;
  height: 20px;
  vertical-align: -3px;
  background-color: #e4716c;
}

.top-read-content {
  padding-top: 8px;
  overflow: hidden;
  word-break: break-all;
}

.top-read-list {
  margin-top: -8px;
}

.top-read-list li {
  margin-top: 8px;
}

.top-read-list a {
  word-break: break-word;
}

.read-num {
  font-size: 15px;
  color: #858585;
}

@media all and (max-width: 1300px) {
    #site-title img {
        width: 25px;
    }

    //宽度不足时隐藏左侧，改为顶部显示
    .left {display: none}

    .header .links {
        display: block;

        a {
            margin-right: 2px;
            font-size: 14px;
        }
        .github-link {
            float: none;
        }
        .github-link img {
            display: none;
        }
    }

    .header .top-personinfo {
        display: block;
    }

    .header .top-up {
        height: 100px;
        position: relative;
    }

    .header .top-avatar {
        display: block;
        border-radius: 5px;
    }

    .header .top-social {
        display: block;
    }

    .header .top-author {
        display: block;
    }

    .wrapper {
        padding-left: 2em;
        padding-right: 2em;
    }

    .entry {
        h1 {
            font-size: 24px;
            line-height: 28px;
            margin-bottom: 7px;
        }
    }

    .article-author {
        img {
            display: none;
        }
    }

    /* 小屏时右侧内容暂时不显示，以后内容多了再调整 */
    .right {
      display: none;
    }
}


@import "base";
